:root {
    --primary-color: #00fff2;
    --secondary-color: #0066ff;
    --bg-color: #0a192f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 242, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.scanner-line {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    animation: scan 2s infinite;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -20px;
    font-size: 12px;
    color: var(--primary-color);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.input-group input:focus ~ .input-border {
    width: 100%;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.login-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes scan {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(30px);
        opacity: 1;
    }
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.message.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 